package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.SecCodeEntity;
import yf.mall.vo.SecCodeVo;

                            
/**
 * 防伪码实体
 * 表名 sec_code
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Fri Jul 28 15:20:42 CST 2023
 */
@Data
public class SecCodeUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //编码
            @ExcelProperty("编码")
            private String code;
        
                        //名字
            @ExcelProperty("名字")
            private String name;
        
                        //用户编码
            @ExcelProperty("用户编码")
            private String userCode;
        
                        //查询次数
            @ExcelProperty("查询次数")
            private Integer num;
        
                        //绑定时间
            @ExcelProperty("绑定时间")
            private Date time;
        
                        //上次时间
            @ExcelProperty("上次时间")
            private Date lastTime;
        
    
    public SecCodeUp() {

    }

    public SecCodeVo toVo() {

        SecCodeEntity entity = new SecCodeEntity();
            SecCodeVo vo = new SecCodeVo(entity);
                                    entity.setId(id);
            
                                    entity.setCode(code);
            
                                    entity.setName(name);
            
                                    entity.setUserCode(userCode);
            
                                    entity.setNum(num);
            
                                    entity.setTime(time);
            
                                    entity.setLastTime(lastTime);
            
        
        return  vo;
    }



}
